<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Insert title here</title>
</head>
<body>
	<fieldset>
		<legend>Remover Usuarios</legend>
	<table border="1">
	<thead>
	<tr>
		<th>Nome</th>
		<th>Matricula</th>
		<th>Perfil</th>
		<th>Acao</th>
	</tr>
	</thead>
	<c:forEach var="usuario" items="${usuarioList}">
		<tr>
			<td>${usuario.nome}</td>
			<td>${usuario.login}</td>
			<td>${usuario.perfil }</td>
			<c:if test="${usuarioWeb.logado }">
				
				<td align="center">
					<form action="<c:url value="/usuario/${usuario.login}" />" method="post">
						<button class="link" name="_method" value="DELETE">Remover</button>
					</form>
				</td>
			</c:if>
		</tr>	
	</c:forEach>
</table>
</fieldset>
</body>
</html>